import axios from "../utils/request"

// 请求中： 请求参数和返回值的类型都需要进行约束
export const reqRoleList = (data: ParamsReq) => axios.post("/api/Role/list", data);
//添加角色
export const addRole = (data: RoleAddReq) => axios.post("/api/Role/add", data)
//编辑角色
export const editRole = (data: RoleAddReq) => axios.post("/api/Role/edit", data)
//删除角色
export const deleteRole = (data: RoleAddReq) => axios.post("/api/Role/delete", data)